package com.baozun.houji.adapter

import com.baozhun.mall.common.base.BaseListAdapter
import com.baozun.houji.BR
import com.baozun.houji.R
import com.baozun.houji.databinding.ItemTestBinding
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder


/**
 * @Title：test a
 * @Description：
 * @Author：xing.luo
 * @Since：2022/11/10
 * @Version：1.0.0
 */
class TestAdapter(data: ArrayList<String>) : BaseListAdapter<String, ItemTestBinding>(R.layout.item_test, data) {

    var clickAction: (position: Int, item: String, state: Boolean) -> Unit = { _, _, _ -> }

    override fun convert(holder: BaseDataBindingHolder<ItemTestBinding>, item: String) {
        holder.dataBinding?.setVariable(BR.model, item)
        holder.dataBinding?.executePendingBindings()
    }
}


